package com.ssm.service;

import com.ssm.pojo.House;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseService {
    //查询房间管理
    List<House> getAllHouses();
    //查询房间根据房间号
    List<House> getHouse(String name);
    //增加房间
    int insertHouse(House house);
    //删除房间
    int deleteHouse(String name);
    //修改房间信息
    int updateHouse(House house);
    //查询房间根据房间是否住人
    List<House> queryHouseByState(String state);
    //查询房间根据房间类型
    List<House> queryHouseByAmount(String amount);
    //查询房间根据价格
    List<House> queryHouseByPrices(@Param("price1") Double price1, @Param("price2")Double price2);
    //查询房间根据房间号(低于)
    List<House> queryHouseByPrice(Double price);
    //根据id查询房间
    House queryHouseById(String id);

}
